import Storage from '@/util/storage';
//开发使用传入环境的url
const url =
  process.env.NODE_ENV == 'development' && Storage.get('developUrl')
    ? Storage.get('developUrl')
    : process.env.VUE_APP_URL;
export const pws = url + '/pws/web/';
export const auth = url + '/auth/web/';
export const version = 'V2.1.40.06'; //版本
// imagecodeApi 图片验证码
export const imagecodeApi = `${auth}v3/login/captcha`;
// getUserType 获取住户类型
export const getContactType = `${pws}v1/general/getUserType`;
//上传图标
export const userUploader = `${pws}v1/cloudStorage/upload`;
//创建组件
export const addComponent = `${pws}v1/new/template/add/component`;
//查询组件
export const listComponent = `${pws}v1/new/template/list/component`;
//删除组件
export const deleteComponent = `${pws}v1/new/template/delete/component`;
//新增事件分组
export const addGroup = `${pws}v1/new/template/add/eventGroup`;
//新增模板
export const addWaterTemplate = `${pws}v1/new/template/add/waterTemplate`;
//模板列表
export const modelLists = `${pws}v1/new/template/list/waterTemplate`;
//通用字典
export const generalDict = `${pws}v1/general/dict`;
//模板详情信息
export const infoTemplate = `${pws}v1/new/template/info/waterTemplate`;
//删除模板
export const deleteWaterTemplate = `${pws}v1/new/template/delete/waterTemplate`;
//查询模板相关联的分组
export const listEventGroup = `${pws}v1/new/template/list/eventGroup`;
//懒加载
export const keyRuleDefineLazyLoad = `${pws}/v1/keyRuleDefine/lazyLoad`;
//地址
export const getMachineRoomList = `${pws}v1/equipmentInfo/getMachineRoomList`;
//新供水机房监控渲染
export const machineRoomTemplateRendering = `${pws}v1/exhibit/new/machineRoomTemplateRendering`;
//获取key列表
export const listKeyData = `${pws}v1/KeyData/list/KeyData`;
//修改组件
export const updateComponent = `${pws}v1/new/template/update/component`;
// 获取组态webscoket凭证
export const websocketTemplateVoucher = `${pws}v1/general/websocketTemplateVoucher`;
